\section{sort --- Sort Matrix}
\label{fn:sort}
\index{matrix!sorting}
\index{ordering matrix}
\index{sort()}
\index{sort matrix}
\begin{rail}
Sort : 'sort' '(' Matrix ')' ;
\end{rail}

\verb+sort+ has two different forms, depending on its argument.  If
the argument is a row or column vector, a list containing two vectors
is returned.  Both vectors will be the same size as the argument.  One
vector will be named \verb+val+, and will contain the same elements as
the argument, but sorted in ascending magnitude.  The other vector is
named \verb+ind+, and tells you where the \verb+val+ element
associated with it was in the argument. If the argument is a string
vector, then the sorting is done in alphabetical order.

If the argument is not a vector, then the same thing happens, except
that each column of the argument is sorted in turn. 

\paragraph{Example}
\index{example of sort()}
\index{sort()!example}
\begin{verbatim}
Dummy Example
\end{verbatim}

\newpage


